package com.jtmg.glorykingsnews.vo.commom;

import java.io.Serializable;
import java.util.List;

/**
 * @BelongsProject: ${PROGECT_NAME}
 * @BelongsPackage: com.jtmg.glorykingsnews.vo
 * @AUTHOR: JavistMorgan
 * @CreatTime: 2020-09-06 16:52
 * @Description: ${Description}
 */
public class MsgVo<T> implements Serializable {
    private String code;
    private String msg;
    private String count;
    private T obj;
    private List<T> data;

    public MsgVo() {

    }
    public MsgVo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public MsgVo(String code, String msg, T obj) {
        this.code = code;
        this.msg = msg;
        this.obj = obj;
    }

    public MsgVo(String code, String msg, List<T> data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public MsgVo(String code, String msg, String count, List<T> data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "MsgVo{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", obj=" + obj +
                ", data=" + data +
                '}';
    }
}
